<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_JS运算符</title>
</head>
<body>
<script>
    console.log(3/2);
    console.log(8/2);


    console.log(3>10);
    console.log(3>'10');
    console.log('3'>10);
    console.log("***********************************");

    console.log('3'>'10');
    console.log('超'>'博');
    console.log('3'.charCodeAt());
    console.log('10'.charCodeAt(0));
    console.log('1'.charCodeAt());

    let a=1;
    let b=true;
    console.log(a == b);
    console.log(a === b);


    console.log(Number('3'),typeof Number('3'));
    console.log(Number(true),typeof Number(true));
    console.log(Number(false),typeof Number(false));
    console.log(Number('傻逼'),typeof Number('傻逼'));


    console.log(Boolean(0));
    console.log(Boolean(''));
    console.log(Boolean(null));
    console.log(Boolean(undefined));
    console.log(Boolean(NaN));
    console.log(Boolean('下午好'))


    let c = 0;
    console.log(c==0 ?'YES':'NO');
    console.log(c=0 ?'YES':'NO');
</script>
</body>
</html>